<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
<form onsubmit="document.writeln('ALPHA'); return false">
<table>
<input type=submit>
</form>
<form onsubmit="document.writeln('BETA'); return false">
<input type=submit>
</table>
<input type=submit>
<script>
document.getElementsByTagName('input')[0].click();
document.getElementsByTagName('input')[1].click();
document.getElementsByTagName('input')[2].click();
</script>
